package com.sky;

public class Student {
    //成员对象（属性） 
    String name;
    double chinese;
    double math;

    //成员方法（行为）
    public void PrintTotalScores(){
        System.out.println(name + "的总成绩是：" + (chinese + math));
    }
    public void PrintAverageScores(){
        System.out.println(name + "的平均成绩是：" + ((chinese + math) / 2.0));
    }
}
